package com.maixun.uitrasound.splash

import com.maixun.lib_base.mvp.BasePresenterImpl
import com.maixun.uitrasound.entity.BannerBeen

/**
 * 作者：Lmoumou
 * 时间：2020/9/2 14:18
 */
class SplashPresenterImpl(view: SplashContract.View) :
    BasePresenterImpl<SplashContract.View, SplashContract.Model>(view),
    SplashContract.Presenter {
    override val mModel: SplashContract.Model by lazy { SplashModelIml() }
    override fun pSplashAD() {
        mModel.mSplashAD(object : CommentObserver<MutableList<BannerBeen>>() {
            override fun onSuccess(t: MutableList<BannerBeen>?) {
                mView.vSplashAD(t)
            }

            override fun onFail(msg: String?) {

            }
        })
    }
}